#ifndef UARTPARAM_H
#define UARTPARAM_H

#include "qglobal.h"
#include <QFrame>



class QSettings;

#include <QtAddOnSerialPort/serialport.h>
#include <QtAddOnSerialPort/serialportinfo.h>

QT_USE_NAMESPACE_SERIALPORT


namespace Ui {
    class UARTParam;
}

class UARTParam : public QFrame {
public:
    explicit UARTParam(QWidget *parent = 0);
	~UARTParam();
	bool setSerialPortParam(SerialPort *);
	void setSettings(QSettings *);
	void saveSettings();
private:
	void fillPortName();
	void loadSettings();
	Ui::UARTParam *ui;
	QSettings *mSettings;
	
};

#endif //UARTPARAM_H